package com.orangelife.service.propFeeRuleLinkApartment;

import java.util.List;
import java.util.Map;

import com.orangelife.exception.AppBizException;
import com.orangelife.service.propFeeRuleLinkApartment.model.PropFeeRuleLinkApartmentDto;

/*****************************************************************
 * Copyright(C) ORANGELIFE Corporation 2015. All Rights Reserved.
 *****************************************************************/
/*
 * ============================================================== 功能名
 * PropFeeRuleLinkApartment类的 service层的增删改查
 * 
 * @author @author
 * 
 * @version 1.1.0
 * 
 * @date 2016-07-25 10:45:42
 * ==============================================================
 */
public interface IPropFeeRuleLinkApartmentService {

	/**
	 * 用途 添加propFeeRuleLinkApartment（橙子生活）
	 * 
	 * @author
	 * @date创建时间 2016-07-25 10:45:42
	 * @param propFeeRuleLinkApartment
	 * @return
	 * @throws AppBizException
	 */
	public int addPropFeeRuleLinkApartment(
			PropFeeRuleLinkApartmentDto propFeeRuleLinkApartment)
			throws AppBizException;

	/**
	 * 用途 修改propFeeRuleLinkApartment（橙子生活）
	 * 
	 * @author
	 * @date创建时间 2016-07-25 10:45:42
	 * @param propFeeRuleLinkApartment
	 * @return
	 * @throws AppBizException
	 */

	public int editPropFeeRuleLinkApartment(
			PropFeeRuleLinkApartmentDto propFeeRuleLinkApartment)
			throws AppBizException;

	/**
	 * 用途 单个查询 （橙子生活）
	 * 
	 * @author
	 * @date创建时间 2016-07-25 10:45:42
	 * @param propFeeRuleLinkApartmentID
	 * @return
	 * @throws AppBizException
	 */

	public PropFeeRuleLinkApartmentDto findPropFeeRuleLinkApartmentByID(
			String propFeeRuleLinkApartmentID) throws AppBizException;

	/**
	 * 用途 逻辑删除（橙子生活）
	 * 
	 * @author
	 * @date创建时间 2016-07-25 10:45:42
	 * @param propFeeRuleLinkApartmentID
	 * @return
	 * @throws AppBizException
	 */
	public int deletePropFeeRuleLinkApartmentByLogic(
			String propFeeRuleLinkApartmentID) throws AppBizException;

	/**
	 * 用途 查询列表 （橙子生活）
	 * 
	 * @author
	 * @date 创建时间 2016-07-25 10:45:42
	 * @param search
	 *            搜索内容
	 * @param tsCreate
	 *            创建时间
	 * @param pageNo
	 *            页码
	 * @param pageSize
	 *            页面大小
	 * @return
	 * @throws AppBizExceptionception
	 */
	public List<Map<String, Object>> findPropFeeRuleLinkApartmentByPage(
			String tsCreate, String search, int pageNo, int pageSize)
			throws AppBizException;

	/**
	 * 用途 查询列表（返回对对象）（橙子生活）
	 * 
	 * @author
	 * @date 创建时间 2016-07-25 10:45:42
	 * @param servletRequest
	 * @param search
	 *            搜索内容
	 * @param tsCreate
	 *            创建时间
	 * @param pageNo
	 *            页码
	 * @param pageSize
	 *            页面大小
	 * @return
	 * @throws AppBizException
	 */
	public List<PropFeeRuleLinkApartmentDto> getPropFeeRuleLinkApartmentByPage(
			String tsCreate, String search, int pageNo, int pageSize)
			throws AppBizException;

	/**
	 * 用途 根据一张表内的所有ID查询propFeeRuleLinkApartment（橙子生活）(返回Map<String, Object>)
	 * 
	 * @author
	 * @date 创建时间 2016-07-25 10:45:42
	 * @param linkID
	 *            (非必填字段)
	 * 
	 * @param ruleID
	 *            (非必填字段)
	 * 
	 * @param commID
	 *            (非必填字段)
	 * 
	 * @param apartmentID
	 *            (非必填字段)
	 * @return
	 * @throws AppBizException
	 */

	public List<Map<String, Object>> selectPropFeeRuleLinkApartmentByRelevantID(
			String linkID, String ruleID, String commID, String apartmentID)
			throws AppBizException;

	/**
	 * 用途 根据一张表内的所有ID查询propFeeRuleLinkApartment（橙子生活）(返回对象)
	 * 
	 * @author
	 * @date 创建时间 2016-07-25 10:45:42
	 * @param linkID
	 *            (非必填字段)
	 * 
	 * @param ruleID
	 *            (非必填字段)
	 * 
	 * @param commID
	 *            (非必填字段)
	 * 
	 * @param apartmentID
	 *            (非必填字段)
	 * @return
	 * @throws AppBizException
	 */

	public List<PropFeeRuleLinkApartmentDto> findPropFeeRuleLinkApartmentByRelevantID(
			String linkID, String ruleID, String commID, String apartmentID)
			throws AppBizException;

	/**
	 * 用途 批量查询propFeeRuleLinkApartment（橙子生活）(返回对象)
	 * 
	 * @author
	 * @date 创建时间 2016-07-25 10:45:42
	 * 
	 * @return
	 * @throws AppBizException
	 */

	public List<PropFeeRuleLinkApartmentDto> bauthfindPropFeeRuleLinkApartment(
			List<String> propFeeRuleLinkApartmentIDs) throws AppBizException;

	/**
	 * 用途 批量查询propFeeRuleLinkApartment（橙子生活）(返回Map)
	 * 
	 * @author
	 * @date 创建时间 2016-07-25 10:45:42
	 * 
	 * @return
	 * @throws AppBizException
	 */

	public List<Map<String, Object>> bauthfindPropFeeRuleLinkApartmentByMap(
			Map<String, Object> propFeeRuleLinkApartment)
			throws AppBizException;

	/**
	 * 用途 清除
	 * 
	 * @author
	 * @date 创建时间 2016-07-25 10:45:42
	 * 
	 * @return
	 * @throws AppBizException
	 */

	public void clearCache() throws AppBizException;

	/*****
	 * 查询已经存在的房屋
	 * 
	 * @param linkID
	 * @param ruleID
	 * @param commID
	 * @param apartmentID
	 * @return
	 * @throws AppBizException
	 */
	public List<Map<String, Object>> findRuleHouseInfo(String linkID,
			String ruleID, String commID, String feeTypeID, String apartmentID,
			List<String> apartmentIDs,String validityType,String ctype,String ruleType,String startTime,String endTime) throws AppBizException;

}
